import { axios } from './index'

//登录接口
export const loginApi = (username,password) => {
	let userLoginRequest = {
		"username":username,
		"password":password
	}
	console.log(userLoginRequest)
	return axios.post('user/login',userLoginRequest)
}

//用户查询列表(分页)
export const userListPageApi = (userQueryRequest) => {
	console.log(userQueryRequest)
	return axios.post('/user/list/page',userQueryRequest)
}

//获取登录用户信息
export const getLoginUserApi = () => {
	return axios.get("user/get/login")
}